package br.com.absolutech.study.chapter8.pag365;

import br.com.absolutech.study.chapter8.pag365.MyOuter.MyInner;

public class Main {

	public static void main(String[] args) {

		MyOuter mo = new MyOuter();
		MyOuter.MyInner myInner1 = mo.new MyInner();
		myInner1.seeOuter();

		MyInner myInner2 = new MyOuter().new MyInner();


	}
}

class MyOuter {

	private int x = 7;

	public void makeInner() {
		MyInner in = new MyInner();
		in.seeOuter();
	}

	class MyInner {
		public void seeOuter() {
			System.out.println("Outer x is " + x);
		}
	}
}